import { service } from '@/utils/axios'
import type { AxiosProgressEvent, GenericAbortSignal } from 'axios'
/** 对话 */
export const getllmv2 = (data: {
  content: string
  subject: string
  img: string
  onDownloadProgress?: (progressEvent: AxiosProgressEvent) => void 
}) => service.post('/api/llmv2', data,{ onDownloadProgress: data.onDownloadProgress, responseType:'stream',headers: { 'Content-Type': 'application/json'} })

/**上传图片 */
export const uploadImg = (formDate:any) => service.post('/api/up_load', formDate, { headers: { 'Content-Type': 'multipart/form-data' } })

/**获取对话列表 */
export const getSubject = (data:any) => service.post('/api/subject',data)